<template>
    <div>
        <h1>Goods{{$route.params.id}}</h1>
        <router-link to='/goods/Son1'>Son1</router-link>
        <router-link to='/goods/Son2'>Son2</router-link>
        <router-view></router-view>
    </div>
   
</template>

<script>

export default {
 data(){
 return{}
 },
 created(){},
 methods:{},
 components:{},

 beforeRouteUpdate(to,from,next){
     console.log('动态路由更新守卫');
     next();
 }
}

</script>
<style scoped>
 

</style>